Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@g023
g023 / ds4_oai_prxy.py
Last active May 2, 2026 10:46
OpenAI-compatible proxy for DeepSeek V4 Flash with intelligent auto context compression features
#!/usr/bin/env python3
"""
Zero-dependency OpenAI-compatible proxy for DeepSeek V4 Flash.
Author: g023
License: MIT
All clientsupplied model and generation parameters are **ignored**.
The proxy always uses the model, max output tokens, and other settings
defined in the global configuration (see --help and the constants below).
@lltx
lltx / terminal-setup.md
Created March 23, 2026 01:07
🚀 现代化终端配置指南 - Ghostty + Zoxide + Yazi + Oh-My-Zsh

🚀 现代化终端配置指南

Ghostty + Zoxide + Yazi + Oh-My-Zsh 完整配置

📦 工具列表

  • Ghostty - 现代化 GPU 加速终端模拟器
  • Zoxide - 智能目录跳转工具(cd 的智能替代)
  • Yazi - 快速终端文件管理器
  • Oh-My-Zsh - Zsh 配置框架
@StevenMaude
StevenMaude / how-to-speak.md
Created December 28, 2020 18:40
Notes on "How To Speak" by Prof. Patrick Winston

How To Speak by Prof. Patrick Winston

MIT 2018 talk

How to start

  • Suggests not starting with a joke.
    • Audience isn't necessarily attuned to your mode of speaking.
  • Start with an empowerment promise; what will the audience get from the talk.
@hryvinskyi
hryvinskyi / 1 SRI hashes broke magento checkout (Magento 2.4.8-p3, 2.4.7-p8, 2.4.6-p13).md
Last active May 2, 2026 10:24
SRI hashes broke magento checkout (Magento 2.4.8-p3, 2.4.7-p8, 2.4.6-p13)

CSP Storage File Locking Patch

Overview

This patch addresses two critical issues in Magento's Content Security Policy (CSP) module:

  1. Race Condition: Fixes corrupted sri-hashes.json files caused by concurrent write operations during normal storefront operation, which results in malformed JSON and 500 checkout errors.

  2. Minification Support: Ensures that static.min.js and mixins.min.js are correctly loaded and their SRI hashes properly recorded when CSP and SRI are enabled along with JS bundling and minification enabled simultaneously.

Problems

@claytonchew
claytonchew / keymap.json
Created May 2, 2026 09:47
Zed keymap.json coming from neovim user
[
// =========================
// GLOBAL KEYBINDINGS
// =========================
{
"bindings": {
// pane navigation
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",